var app = getApp()
Page({
  data: {
    userInfo: {}
  },
  //事件处理函数
  bindViewTap: function() {
    wx.navigateTo({
      url: '../logs/logs'
    })
  },
  myorder:function () {
    wx.navigateTo({
      url: '../myorder/myorder'
    })
  },
  nm:function(){
    wx.navigateTo({
    url: '../counter/index'
    
    
    })
  },
  personal: function() {
  wx.navigateTo({
    url: '../personal/personal'
  })
},
  onLoad: function () {
    console.log('onLoad')
    var that = this
    //调用应用实例的方法获取全局数据
    app.getUserInfo(function(userInfo){
      console.log(userInfo)
      //更新数据
      that.setData({
        userInfo:userInfo
      })
    })
    // 
   
    
   
  
  },
  beiwanglu: function () {
    wx.navigateTo({
      url: '../nao/index'
    })
  },
  tianqi:function(){
    wx.navigateTo({
    url: '../tianqi/tianqi'
    })
  }
})
